/**
 * chinagoods.com
 * Copyright (c) 2020-2024 All Rights Reserved.
 */
package com.ruoyi.system.biz;

import com.ruoyi.common.core.domain.entity.SysUser;
import com.ruoyi.system.domain.Cash;
import com.ruoyi.system.domain.CashHistory;
import com.ruoyi.system.dto.TransferSubmitDto;

import java.math.BigDecimal;

/**
 * @author yangpeng
 * Created by on 2024-02-21 15:21
 */

public interface CashBizService {
    Cash getByUserId(Long userId);

    void benefit(Long userId, String orderNo, BigDecimal userEarning, String type, String channelCode);


    void updateCash(CashHistory cashHistory);

    void updateCashLock(CashHistory cashHistory);

    void updateCash(Long userId, CashHistory cashHistory);

    void transfer(SysUser user, TransferSubmitDto dto);
}